Package com.cisco.pt.ipc.sim.impl
Class IPsProcessImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.IPsProcessImpl
- All Implemented Interfaces:
IPCObject,IPsProcess,Process
Information provided by the PKI file:
\class IpsProcess
\brief IpsProcess is the process that handles intrusion prevention.
\example network().getDevice("Router0").getProcess("IpsProcess")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionIPsProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidInformation provided by the PKI file:booleanInformation provided by the PKI file:getAclForIps(String ipsName) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:getIpsAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:getSubCategoryAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:booleanInformation provided by the PKI file:voidsetConfigLocation(String name) Information provided by the PKI file:voidsetNotifyLog(boolean val) Information provided by the PKI file:voidsetRetryCount(int count) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
IPsProcessImpl
public IPsProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
setConfigLocation
Information provided by the PKI file:
\brief Sets the directory location. \param name, the directory location.- Specified by:
setConfigLocationin interfaceIPsProcess- Parameters:
name- Takes in a parameter of name
-
getConfigLocation
Information provided by the PKI file:
\brief Returns the config location directory for IPS. \return string, the config location directory for IPS.- Specified by:
getConfigLocationin interfaceIPsProcess- Returns:
- String Returns a String
-
getIpsAt
Information provided by the PKI file:
\brief Returns the IPS at the specified index. \param index, the index of the IPS of interest. \return string, the IPS at the specified index.- Specified by:
getIpsAtin interfaceIPsProcess- Parameters:
index- Takes in a parameter of index- Returns:
- String Returns a String
-
getAclForIps
Information provided by the PKI file:
\brief Returns the ACL for the IPS with the specified name. \param ipsName, the name of the IPS of interest. \return string, the ACL for the IPS with the specified name.- Specified by:
getAclForIpsin interfaceIPsProcess- Parameters:
ipsName- Takes in a parameter of ipsName- Returns:
- String Returns a String
-
addIps
Information provided by the PKI file:
\brief Adds an IPS with the specified name and ACL. \param ipsName, the name of this IPS. \param aclName, the name of the ACL for this IPS.- Specified by:
addIpsin interfaceIPsProcess- Parameters:
ipsName- Takes in a parameter of ipsNameaclName- Takes in a parameter of aclName
-
deleteIps
Information provided by the PKI file:
\brief Removes the IPS from the list. \param ipsName, the name of the IPS of interest. \returns bool, true if successful, otherwise false.- Specified by:
deleteIpsin interfaceIPsProcess- Parameters:
ipsName- Takes in a parameter of ipsName- Returns:
- boolean Returns a boolean
-
getIpsListSize
public int getIpsListSize()Information provided by the PKI file:
\brief Returns the number of IPS configured. \return int, the number of IPS configured.- Specified by:
getIpsListSizein interfaceIPsProcess- Returns:
- int Returns a int
-
getRootSigCategory
Information provided by the PKI file:
\brief Returns the root signature category category. \return SignatureCategory, the SignatureCategory object.- Specified by:
getRootSigCategoryin interfaceIPsProcess- Returns:
- SignatureCategory Returns a SignatureCategory
-
getSubCategoryAt
Information provided by the PKI file:
\brief Returns the subcategory at the specified index. \param index, the index of the subcategory of interest. \return Category, the Category object at the specified index.- Specified by:
getSubCategoryAtin interfaceIPsProcess- Parameters:
index- Takes in a parameter of index- Returns:
- Category Returns a Category
-
getSubCategorySize
public int getSubCategorySize()Information provided by the PKI file:
\brief Returns the subcategory size. \return int, the subcategory size.- Specified by:
getSubCategorySizein interfaceIPsProcess- Returns:
- int Returns a int
-
getIcmpSignature
Information provided by the PKI file:
\brief Returns the ICMP signature. \return IcmpSignature, the IcmpSignature object.- Specified by:
getIcmpSignaturein interfaceIPsProcess- Returns:
- ICMPSignature Returns a ICMPSignature
-
setRetryCount
public void setRetryCount(int count) Information provided by the PKI file:
\brief Sets the retry count. \param count, the retry count.- Specified by:
setRetryCountin interfaceIPsProcess- Parameters:
count- Takes in a parameter of count
-
getRetryCount
public int getRetryCount()Information provided by the PKI file:
\brief Returns the retry count \return int, the retry count.- Specified by:
getRetryCountin interfaceIPsProcess- Returns:
- int Returns a int
-
setNotifyLog
public void setNotifyLog(boolean val) Information provided by the PKI file:
\brief Sets the syslog notification. \param val, true to enable syslog, false to disable it.- Specified by:
setNotifyLogin interfaceIPsProcess- Parameters:
val- Takes in a parameter of val
-
isSysLogEnabled
public boolean isSysLogEnabled()Information provided by the PKI file:
\brief Returns true if syslog is enabled, otherwise false. \return bool, true if syslog is enabled, otherwise false.- Specified by:
isSysLogEnabledin interfaceIPsProcess- Returns:
- boolean Returns a boolean
-